import request from './request'
export default {
    getCityPage(params) {
        return request.get('/cities/page', { params })
    },
    addCity(data) {
        return request.post('/cities/new', data)
    },
    updateCity(data) {
        return request.put('/cities', data)
    },
    deleteCity(id) {
        return request.delete(`/cities/${id}`)
    }
}